package com.job.GaoYuXuan.Homework0705;

/**
 * @author 盖(高宇轩)
 * @version 1.0
 * @since 2022-07-05 16:58:53
 */
public class Job0705Example {
    public static void main(String[] args) {
        int s = 4;
        int t = 8;
        int b = 9;
        int temp = 0;
        int[][] array = new int[b][b];
        for(int i = b - 1; i >= 0; i--){
            for(int j = 0; j <= i; j++){
                array[j][i] = s;
                s++;
                s = s == t + 1 ? 1 : s;
            }
        }
        for(int i = 0; i < b; i++){
            for (int j = 0; j < b; j++){
                if(j < i){
                    System.out.print("\t");
                }else{
                    System.out.print(array[i][j] + "\t");
                }
            }
            System.out.println("");
        }
    }
}